package com.kang.service.warMap;

import com.baomidou.mybatisplus.extension.service.IService;

import com.github.pagehelper.PageInfo;
import com.kang.bean.bot.WarMap;
import com.kang.dto.QueryDto;
import com.kang.dto.WarMapDto;
import com.kang.vo.WarMapVo;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @program: service
 * @description: 地图建设游戏
 * @author: K.faWu
 * @create: 2022-05-09 17:53
 **/

public interface WarMapService extends IService<WarMap> {
    List<WarMapVo> create(WarMapDto warMapDto);


    void add(WarMapDto warMapDto);
    void add(WarMapDto warMapDto, String groupCode);

    PageInfo<WarMap> getList(List<QueryDto> queryDtos, Pageable page);

    List<WarMap> explore(String accountCode, String groupCode);

    List<WarMap> initWarMap(String groupCode);

    /**
     * 获取指定区域周围指定人员的地盘
     * @param code
     * @param groupCode
     * @param warMap
     * @return
     */
    List<WarMap> exploreByWarId(String code, String groupCode, WarMap warMap);

    String addPro(String accountCode, String groupCode, Integer proNum, String accountNickname, WarMap warMap);

    WarMapDto getByCodeAndGroup(WarMapDto warMapDto);
}
